home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / system-tools / tinymeter / source / tinymeter_prefs / tinymeter.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-20  |  4.0 KB  |  188 lines

  1. /***************************************************************/
  2. /* defines                                                     */
  3. /***************************************************************/
  4. ///
  5. #define idle_none       0
  6. #define idle_executive  1
  7. #define idle_own        2
  8.  
  9. #define col_label       0
  10. #define col_format      1
  11. #define col_base        2
  12. #define col_current     3
  13. #define col_negative    4
  14. #define col_bright      5
  15. #define col_dark        6
  16. #define col_bg          7
  17.  
  18. #define col_entry       1
  19. #define col_hbright     2
  20. #define col_hdark       3
  21. #define col_cursor      4
  22.  
  23. #define bg_none         0
  24. #define bg_file         1
  25. #define bg_snap         2
  26.  
  27. #define win_normal      0
  28. #define win_fixed       1
  29.  
  30. #define bd_none         0
  31. #define bd_simple       1
  32. #define bd_standard     2
  33. #define bd_double       3
  34.  
  35. #define ind_centered    0
  36. #define ind_left        1
  37. #define ind_right       2
  38.  
  39. #define typ_none            0
  40. #define typ_all             1
  41. #define typ_chip            2
  42. #define typ_fast            3
  43. #define typ_volume          4
  44. #define typ_idle            5
  45. #define typ_retina          6
  46. #define typ_largest_chip    7
  47. #define typ_largest_fast    8
  48. #define typ_largest_total   9
  49. #define typ_largest_retina  10
  50. #define typ_clock_          11
  51. #define typ_simplelauncher  12
  52. #define typ_image           13
  53. #define typ_virtual         14
  54. #define typ_appgadget       15
  55.  
  56. #define typ_gauge       0
  57. #define typ_histmeter   1
  58. #define typ_clock       2
  59. ///
  60. /***************************************************************/
  61. /* gauge struct                                                */
  62. /***************************************************************/
  63. ///
  64. struct  GAU_Color
  65. {
  66.     UWORD   pen;
  67.     ULONG   red;    /* if pen is TRUE, this is the pen number */
  68.     ULONG   green;
  69.     ULONG   blue;
  70. };
  71.  
  72. struct tm_gau_set
  73. {
  74.     UWORD   type;
  75.     UWORD   gauge_type;
  76.  
  77.     UWORD   size_y;     /* in 100+x percent of the font size ! */
  78.  
  79.     char    font[128];
  80.     UWORD   font_size;
  81.  
  82.     char    label[16];
  83.     char    format[128];
  84.  
  85.     char    expansion[126]; /* used for image type and volume */
  86.     UWORD   sty_mirror;
  87.     UWORD   indent;
  88.  
  89.     UWORD   sty_3d;
  90.     UWORD   sty_border;
  91.     UWORD   sty_bg;
  92.     UWORD   sty_shadow;
  93.     UWORD   sty_nogauge;
  94.     UWORD   sty_noformat;
  95.     UWORD   sty_nobase;
  96.  
  97.     struct  GAU_Color Colors[8];
  98.  
  99.     struct  tm_gau_set *next;
  100. };
  101.  
  102. struct tm_lau_set
  103. {
  104.     UWORD   type;
  105.     UWORD   gauge_type;
  106.  
  107.     UWORD   size_y;
  108.  
  109.     char    font[128];
  110.     UWORD   font_size;
  111.  
  112.     char    label[128];
  113.     char    picture[144];
  114.  
  115.     UWORD   indent;
  116.  
  117.     UWORD   sty_xen;
  118.     UWORD   sty_border;
  119.     UWORD   sty_bg;
  120.     UWORD   sty_shadow;
  121.     UWORD   sty_down;
  122.     UWORD   numoflistentries;
  123.     UWORD   dummy;
  124.  
  125.     struct  GAU_Color Colors[8];
  126.  
  127.     struct  tm_gau_set *next;
  128. };
  129.  
  130. ///
  131. /***************************************************************/
  132. /* System struct                                               */
  133. /***************************************************************/
  134. ///
  135. struct tm_sys_set
  136. {
  137.     char    set_header[4];
  138.     UWORD   set_version;
  139.  
  140.     UWORD   x_pos;
  141.     UWORD   y_pos;
  142.     UWORD   x_siz;
  143.     UWORD   colums;
  144.  
  145.     char    pub_name[128];
  146.  
  147.     char    font_name[40];
  148.     UWORD   font_size;
  149.  
  150.     UWORD   bg_type;
  151.     char    bg_picture[126];
  152.     UBYTE   lay_falling;
  153.     BYTE    pri;
  154.     struct  GAU_Color bg_color;
  155.  
  156.     UWORD   vol_refresh;
  157.     UWORD   mem_refresh;
  158.  
  159.     UWORD   start_wait;
  160.     UWORD    start_usescreennotify;
  161.  
  162.     UWORD   win_move;
  163.     UWORD   win_backfront;
  164.     UWORD   win_border_x;
  165.     UWORD   win_border_y;
  166.     UWORD   win_space_x;
  167.     UWORD   win_space_y;
  168.  
  169.     UWORD   bd_type;
  170.     struct  GAU_Color bright_color;
  171.     struct  GAU_Color dark_color;
  172.  
  173.     UWORD   Executive;
  174. };
  175. ///
  176. /***************************************************************/
  177. /* tm_data                                                     */
  178. /***************************************************************/
  179. ///
  180. struct tm_data
  181. {
  182.     struct tm_sys_set *set;
  183.     struct tm_gau_set *list;
  184.  
  185.     UWORD  num_of_gaug;
  186. };
  187. ///
  188.